package com.dao;

import com.mapper.AccountMapper;
import com.pojo.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class AccountDaoImpl implements AccountDao {

    @Autowired
    AccountMapper accountMapper;

    // 汇款的实现方法
    public void out(String outUser, int money) {

    }

    // 收款的实现方法
    public void in(String inUser, int money) {

    }

    public void add(Account account){
        System.out.println(account);
    }

    @Override
    public Account findAccountById(int id) {
        return accountMapper.findAccountById(id);
    }
}